﻿var User = require('./User');
function Teacher(id, name, age) {
	User.apply(this, [id, name, age]);
	this.teach = function(res) {
		// console.log(res);
		// console.log(this.name + "讲课");
		res.write(this.name + "讲课");
	};
};

module.exports = Teacher;